package com.xinyu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author XinYu
 * @since 2025-02-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    @ApiModelProperty(value = "密码,加密存储")
    private String pwd;

    @ApiModelProperty(value = "真实名字")
    private String realname;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "头像")
    private String head;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "入职日期")
    private Date hireDate;

    @ApiModelProperty(value = "职责")
    private String duty;

    private Integer isAdmin;

    //0 研发工程师 1 现场工程师  3 其他
    private Integer role;

    @ApiModelProperty(value = "是否开启邮件通知 0-关闭 1-开启")
    private Integer emailNotifyEnabled = 0;

    @TableField(exist = false)
    private List<Integer> siteIds;
}
